//
//  CashShowView.m
//  meiyinxiang
//
//  Created by 媒印象 on 15/12/2017.
//  Copyright © 2017 hbjApple. All rights reserved.
//

#import "CashShowView.h"
@interface CashShowView()
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;
@property (weak, nonatomic) IBOutlet UITextField *cashAcountTextfield;
@property (weak, nonatomic) IBOutlet UILabel *cashMoneyLabel;

@end
@implementation CashShowView

- (IBAction)sureBtn:(id)sender {
    if (self.cashAcountTextfield.text.length > 0) {
        if (self.finishCashBlock) {
            self.finishCashBlock(self.cashAcountTextfield.text);
        }
    }else{
        ShowSVProgressErrorMessage(@"请填写您的提现账号");
       // [SVProgressHUD showErrorWithStatus:@"请填写您的提现账号"];
    }
}
- (void)setMoneyCout:(NSString *)moneyCout{
        self.cashMoneyLabel.text = [NSString stringWithFormat:@"￥%@",moneyCout];
}
+ (CashShowView *)loadNibCashView{
    UINib *nib = [UINib nibWithNibName:@"CashShowView" bundle:[NSBundle mainBundle]];
    return [[nib instantiateWithOwner:nil options:nil] lastObject];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
